import socket
import time

"""
message_host=None
message_port=None
message_socket=None

camera=None
camera_port=None
camera_socket=None
"""

def message_socket1():
    global message_host,message_port,message_socket
    #message_host = '175.178.13.185'
    message_host = '192.168.195.71'
    message_port = 8888
    message_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    message_socket.connect((message_host, message_port))
    print("connect successful\n")

def camera_socket2():
    global camera_host,camera_port,camera_socket
    # ip_port = ('192.168.1.61', 2000)
    #camera_host = '175.178.13.185'
    camera_host = '192.168.195.71'
    camera_port = 9999
    camera_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    camera_socket.connect((camera_host, camera_port))
    print("connect successful")
